package com.dk.myhouse.dao;

import com.dk.myhouse.pojo.Regionparent;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RegionparentDao {
    Regionparent findRegionparentById(Integer id);// id查询
    Regionparent findRegionparentByName(String regionpname);//根据名字查询
    List<Regionparent> findAll();// 查询所有

    void addReqionparent(Regionparent regionparent);//添加数据

    void deleteRegionparentByIds(@Param("ids") List<String> ids);//根据id批量删除

    void updateReqionparent(Regionparent regionparent);//修改数据

}
